﻿using System.Collections.Generic;
using Newtonsoft.Json;

public class ParkingRecord
{
    /// <summary>
    ///     粤BA5K21
    /// </summary>
    public string VehicleNo { get; set; }

    /// <summary>
    /// </summary>
    public string EnterTime { get; set; }

    /// <summary>
    /// </summary>
    public int ServiceMin { get; set; }

    /// <summary>
    /// </summary>
    public decimal TotalFee { get; set; }

    /// <summary>
    /// </summary>
    public decimal ActualPayFee { get; set; }

    /// <summary>
    /// </summary>
    public string ThirdPartyId { get; set; }

    /// <summary>
    /// </summary>
    public string ThirdParkOrderNo { get; set; }

    /// <summary>
    /// </summary>
    public string CreatedByQrCode { get; set; }

    /// <summary>
    /// </summary>
    public decimal TotalFeeInYuan { get; set; }
}

public class Points
{
    /// <summary>
    /// </summary>
    public int DiscountTime { get; set; }

    /// <summary>
    /// </summary>
    public decimal DiscountFee { get; set; }

    /// <summary>
    /// </summary>
    public decimal DiscountPoints { get; set; }
}

public class DiscountInfo
{
    /// <summary>
    /// </summary>
    public decimal UsingTotalDiscount { get; set; }

    /// <summary>
    /// </summary>
    public decimal ActualUsedDiscount { get; set; }

    /// <summary>
    /// </summary>
    [JsonProperty(PropertyName = "points", NullValueHandling = NullValueHandling.Ignore)]
    public Points Points { get; set; }

    [JsonProperty(PropertyName = "coupons", NullValueHandling = NullValueHandling.Ignore)]
    public List<CouponsItem> Coupons { get; set; }
}

public class OrdersAndPrepayInfo
{
    /// <summary>
    /// </summary>
    public string PayChannel { get; set; }

    /// <summary>
    /// </summary>
    public string PayOption { get; set; }

    /// <summary>
    /// </summary>
    public ParkingRecord ParkingRecord { get; set; }

    /// <summary>
    /// </summary>
    public DiscountInfo DiscountInfo { get; set; }
}